﻿using System;

namespace Assets.Scripts.ProceduralCityGenerator
{
	// Token: 0x02000340 RID: 832
	internal class DestructionStatus
	{
		// Token: 0x06001587 RID: 5511 RVA: 0x0008CE6C File Offset: 0x0008B06C
		public DestructionStatus(FracturedObject chunks)
		{
			this.mChunks = chunks;
		}

		// Token: 0x06001588 RID: 5512 RVA: 0x0008CE7B File Offset: 0x0008B07B
		public bool IsBroken()
		{
			if (this.mChunks != null)
			{
				return this.mChunks.enabled;
			}
			return this.animationCalled;
		}

		// Token: 0x06001589 RID: 5513 RVA: 0x0008CEA0 File Offset: 0x0008B0A0
		public void AnimationCalled()
		{
			this.animationCalled = true;
		}

		// Token: 0x0400185C RID: 6236
		private FracturedObject mChunks;

		// Token: 0x0400185D RID: 6237
		private bool animationCalled;
	}
}
